package com.noreply.demo.job;


import com.noreply.demo.dto.GcObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @author noreply
 * @description
 * @datetime 2021/8/23 9:45
 */
@Slf4j
@EnableScheduling
@Configuration
public class LogInfoJob {

    //@Scheduled(fixedDelayString = "1000")
    public void info() {
        log.info("hello ");
        GcObject gcObject = new GcObject();
        gcObject.setId(1L);
        gcObject.setMsg("hello");
        gcObject.setBytes(new Byte[1024 * 1024]);
    }
}
